-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Some doc cleanup #19968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Some doc cleanup #19968
Conversation
01951a6
to
378abb9
Compare
I would have preferred that you broke your in PR into two separate PR's: one for the indexing and one for your added tests. It's a little easier to review, and helps to main the atomicity of the PR's / merges. |
Codecov Report
@@ Coverage Diff @@
## master #19968 +/- ##
==========================================
- Coverage 91.71% 91.65% -0.07%
==========================================
Files 150 150
Lines 49104 49049 -55
==========================================
- Hits 45035 44954 -81
- Misses 4069 4095 +26
Continue to review full report at Codecov.
|
doc/source/indexing.rst
Outdated
@@ -402,6 +376,33 @@ For getting a value explicitly (equivalent to deprecated ``df.get_value('a','A') | |||
# this is also equivalent to ``df1.at['a','A']`` | |||
df1.loc['a', 'A'] | |||
|
|||
.. warning:: | |||
|
|||
``.loc`` is strict when you present slicers that are not compatible (or convertible) with the index type. For example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acutallly maybe put some of this somewhere in the slicing with labels section.
doc/source/indexing.rst
Outdated
dfl.loc['20130102':'20130104'] | ||
|
||
.. warning:: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part should be left where it was
Some minor stuff regarding
.ix
and.loc
.1:
The README has a link about
DataFrame.ix
. Asix
is deprecated, the link is changed to selection-by-label.2:
In selection-by-label a minor wall of warnings come before the reader even knows what the warning are about (because this is the section about `´loc.``...). This is very "scary" introduction.
I've moved the chained-assignment warning to after the intro, and the rest to the end of the section, so the reader first gets an understanding about
loc
in general and then only after that gets the warnings about the pitfalls ofloc
.